liblockdep: Fix 'unused value' warnings
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 19:13:23 +0000 (20:13 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 4 Jun 2017 02:03:01 +0000 (02:03 +0000)
commit5e5853db9f0ac4ca82cc1587cd04d1cc49e0c901
treeb57a6368f5e2b7e5ceaeabd7e2abda48d285eaad
parent375ec1916a41ab7250388d0c294c20ddbed4250c
liblockdep: Fix 'unused value' warnings

liblockdep defines various macros that may expand to an expression
with no effect, while the in-kernel definition does have an effect.
This results in warnings from gcc when -Wunused-value is enabled, and
is is enabled by -Wall.  Fix this by introducing trivial functions,
as function return values are generally allowed to be ignored.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-unused-value-warnings.patch
tools/lib/lockdep/uinclude/linux/debug_locks.h
tools/lib/lockdep/uinclude/linux/kernel.h
tools/lib/lockdep/uinclude/linux/lockdep.h